<template>
  <div>
    <el-container>
      <el-aside width="0">
        <el-menu
            router
            style="position: fixed;top: 0; left: 0; bottom: 0;width: 200px"
            default-active="1">
          <el-submenu index="1">
            <template slot="title">
              <span>单车信息管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/bicycle">单车管理</el-menu-item>
              <el-menu-item index="/bicycleType">单车分类</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-container style="margin-left: 210px;min-height: 100vh;">
        <el-header style="position: fixed;top: 0; right: 0; bottom: 0;">
          <span style="color: blue"> {{user.username}} </span>用户
        </el-header>
        <el-main style="position: relative;top: 0px;bottom: 0px;width: 100%;overflow: hidden;">
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "home",
  methods: {
    handleOpen(){
    }
  },
  data() {
    return {
      user:{
        username:""
      }
    }
  },
  mounted() {
    this.user = JSON.parse(sessionStorage.getItem("user"))
  }
}
</script>

<style scoped>

</style>